// 基准设置
:root {
  font-size: 12px;
}

div {
  box-sizing: border-box;
}

// 网格布局样式
.row {
  display: flex;
  flex-direction: row;
}
.position-relative {
  position: relative;
}
.w-100 {
  width: 100%;
}
.h-100vh {
  height: 100vh;
}

.extend {
  flex: 1;
}
.content-center {
  justify-content: center;

}
.content-start{
  justify-content: flex-start;
}
.content-end{
  justify-content: flex-end;
}
.content-space-between {
  justify-content: space-between;
}
.column {
  display: flex;
  flex-direction: column;
}
.align-center {
  align-items: center;
}
.align-start{
  align-items: flex-start;
}
.align-end{
  align-items: flex-end;
}

// 区域布局
.section {
  padding: 10px 10px;
  position: relative;
  width: 100%;
  height: auto;
  box-sizing: border-box;
}
// 组件样式
.table_component {

  .table-head {
    padding: 10px 0;
    background-color: #F5F5F5;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
  }
  .table-row {
    display: flex;
    flex-direction: row;
    .td-id {
      width: 10%;
    }
    .td-name{
      width: 20%;
    }
    .td-create-date {
      width: 30%;
    }
    .td-modify-date {
      width: 40%;
    }
    .cell {
      padding: 5px 5px;
    }
  }

}

.modal {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  position: fixed;
  width: 100%;
  height: 100%;
  background-color: rgba(128,128,128,0.5);
  box-sizing: border-box;
  top: 0;
  left: 0;
  z-index: 20;

  .modal-container {
    width: auto;
    height: 500px;
    background-color: #FFFFFF;
    border-radius: 5px;
    border: 0;
    position: relative;
    display: flex;
    flex-direction: column;

    .modal-head {
      width: 100%;
      height: 30px;
    }
    .modal-content {
      flex:1;
      padding: 10px 10px;
    }
    .modal-footer {
      height: auto;
      display: flex;
      flex-direction: row;
      justify-content: flex-end;
      bottom:0;
      left:0;
      width: 100%;
      padding: 10px 20px;
    }
  }
}

.editor {
  display:flex;
  width: 100%;
  height: 100%;
  border: 1px solid transparent;
  flex-direction: column;
  box-sizing: border-box;

  .title {
    height: auto;
    padding: 5px 5px;
    box-sizing: border-box;
    display:flex;
    justify-content: space-between;
    input {
      width: 80%;
    }
  }

  .content {
    flex: 1;
    padding: 5px 5px;
    box-sizing: border-box;
    border: 1px solid gray;
    border-radius: 5px;
  }
}

